angular.module("home",[]).config(["$stateProvider",function($stateProvider){
	$stateProvider.state("/home",{
		url:"/home",
		templateUrl:"html/home/home.html",
		css:'html/home/index.css',
		controller:"homeController"
	}).state("/meiribiqiang",{
		url:'/meiribiqiang',
		templateUrl:'html/home/meiribiqiang/index.html',
		css:'html/home/meiribiqiang/index.css',
		controller:'Controller1'
	}).state("/xianhuozhigong",{
		url:'/xianhuozhigoong',
		templateUrl:'html/home/fresh/fresh.html',
		css:'html/home/fresh/fresh.css',
		controller:'Controller2'
	}).state("/zhengxianggou",{
		url:'/zhengxianggou',
		templateUrl:"html/home/flcpurchase/flcpurchase.html",
		css:"html/home/flcpurchase/flcpurchase.css",
		controller:'Controller3'
	}).state("/rupin",{//乳品
		url:'/rupin',
		templateUrl:'html/home/dairy/dairy.html',
		css:'html/home/dairy/index.css',
		controller:'Controller4'
	}).state("/yili",{//伊利牛奶
		url:'/yili',
		templateUrl:'html/home/yili/index.html',
		css:'html/home/yili/yili.css',
		controller:'Controller5'
	}).state('/huolongguo',{//火龙果
		url:'/huolongguo',
		templateUrl:'html/home/huolongguo/index.html',
		css:'html/home/huolongguo/index.css',
		controller:'Controller6'
	}).state('/mala',{//火龙果
		url:'/mala',
		templateUrl:'html/home/mala/index.html',
		controller:'Controller7'
	})
	.state("/dairy",{
		url:"/dairy",
		templateUrl:"html/home/dairy/dairy.html",
		controller:"dairyController"
	})
}]).controller('dairyController',function($scope,$http) {
		$http.get('../node/fruit.json').then(function(data) {
			$scope.data = data;
			console.log($scope.data);
		})
}).controller("homeController",function($scope){

	$scope.msg = "这里是首页";
	$scope.click=function(){
		$("#foot").hide()
	}
//	$scope.click1=function(){
//		$("#foot").show()
//	}


	$scope.msg = "这里是首页";
	$scope.click = function(){
           $("#foot").hide();
	}

	$scope.msg = "这里是首页"



	
	var mySwiper = new Swiper('.swiper-container', {
	autoplay: 1000,//可选选项，自动滑动
	loop:true,
	})

}).controller("FreshController",function($scope){
	$scope.msg = "这是二级的二级"
	

}).controller('Controller1',function($scope){
	$scope.one=0;

	$scope.click2 = function(){
           $("#foot").show();
	}
	

}).controller('Controller2',function($scope){
	$scope.msg="这是鲜货直购的页面";
	$scope.click2 = function(){
           $("#foot").show();
	}
	
}).controller('Controller3',function($scope){
	$scope.msg="这是整箱购的页面";
	$scope.click2 = function(){
           $("#foot").show();
          
	}
	
}).controller('Controller4',function($scope){



	$scope.msg="这是每日必抢乳品的页面";
	$scope.click2 = function(){
           $("#foot").show();
          
	}
	




	
	$scope.msg="这是每日必抢乳品的页面"

}).controller('Controller5',function($scope){
	$scope.msg="这是伊利的页面";
	$scope.click6 = function(){
           $("#foot").show();
          
	}
}).controller('Controller6',function($scope){
	$scope.msg="这是火龙果的页面"
}).controller('Controller7',function($scope){
	$scope.msg="这是麻辣女生的页面"
})

//var mySwiper = new Swiper('.swiper-container', {
//	autoplay: 1000,//可选选项，自动滑动


